﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HR_ContractChange.aspx.cs" Inherits="ArtLand.OA.Project.HR.HR_ContractChange" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../css/Mastr.css" rel="stylesheet" />
    <link href="../css/main.css" rel="stylesheet" />
    <script src="../js/jquery-1.4.1.min.js"></script>
    <link rel="stylesheet" href="../jqueryui/css/ui-lightness/jquery-ui-1.9.2.custom.min.css" />
    <style>
        .ui-autocomplete-loading
        {
            background: white url('../images/ui-anim_basic_16x16.gif') right center no-repeat;
        }

        .mytoolbar td
        {
            vertical-align: top;
        }

        .mytoolbar .x-form-field-wrap
        {
            /* Only fileupload in toolbar */
            height: 23px;
        }

        .mytoolbar .x-form-field
        {
            /* fix for IE */
            float: left;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager runat="server" ID="page1" AutoSizePanelID="pan1" />
        <ext:Panel runat="server" ID="pan1" ShowHeader="false" Layout="Fit" ShowBorder="false">
            <Toolbars>
                <ext:Toolbar>
                    <Items>
                        <ext:Button runat="server" ID="btnSave" Text="保存" Icon="Accept" OnClick="btnSave_Click"></ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:SimpleForm ShowBorder="false" ShowHeader="false" AutoScroll="true">
                    <Items>
                        <ext:ContentPanel  runat="server" ID="Con2" ShowBorder="false" ShowHeader="false">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list_tdcss">
                                <tbody>
                                    <tr>
                                        <td>
                                            <div class="title-bg" style="border-top-width: 0px;">
                                                <span class="title-font main-btn1">合同关系</span>
                                            </div>
                                            <div>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list_tdcss main-ttable">
                                                    <tbody>
                                                        <tr>
                                                            <td align="left" class="org f2 listline" style="height: 32px;">&nbsp;&nbsp;员工编号:
                                                            </td>
                                                            <td class="listline" style="padding-left: 5px;">
                                                                <ext:TextBox runat="server" ID="txt_EMPLID" Width="100px"></ext:TextBox>
                                                            </td>
                                                            <td align="left" class="org f2 listline" style="height: 32px;">&nbsp;&nbsp;<span style="color:red;font-weight:bold;">*</span>直线经理员工编号:
                                                            </td>
                                                            <td class="listline" style="padding-left: 5px;">
                                                                <ext:TextBox runat="server" ID="txt_DIRMGR" Width="130px" EmptyText="输入后智能提示"></ext:TextBox>
                                                            </td>
                                                            <td align="left" class="org f2 listline" width="115px">&nbsp;&nbsp;<span style="color:red;font-weight:bold;">*</span>入职日期:
                                                            </td>
                                                            <td class="listline" width="170px" style="padding-left: 5px;">
                                                                <ext:DatePicker runat="server" ID="txt_ENTRYTIME" Width="160px"></ext:DatePicker>
                                                            </td>

                                                        </tr>
                                                        <tr>
                                                             <td align="left" class="org f2 listline" style="height: 32px;">&nbsp;&nbsp;紧急情况联系人:
                                                            </td>
                                                            <td class="listline" style="padding-left: 5px;">
                                                                <ext:TextBox runat="server" ID="txt_EMCONT" Width="100px"></ext:TextBox>
                                                            </td>
                                                            <td align="left" class="org f2 listline" style="height: 32px;">&nbsp;&nbsp;<span style="color:red;font-weight:bold;">*</span>人事专员编号:
                                                            </td>
                                                            <td class="listline" style="padding-left: 5px;" colspan="3">
                                                                <ext:TextBox runat="server" ID="txt_HRMMGR" Width="130px" EmptyText="输入后智能提示"></ext:TextBox>
                                                            </td>
                                                            
                                                           

                                                        </tr>
                                                        <tr>
                                                            <td align="left" class="org f2 listline" style="height: 32px;">&nbsp;&nbsp;<span style="color:red;font-weight:bold;">*</span>合同类型:
                                                            </td>
                                                            <td class="listline" style="padding-left: 5px;">
                                                                <ext:DropDownList runat="server" ID="Drp_CEKSAT" Width="100px">
                                                                    <ext:ListItem Text="试用" Value="1" />
                                                                    <ext:ListItem Text="临时合同" Value="4" />
                                                                    <ext:ListItem Text="正式" Value="2" />
                                                                    <ext:ListItem Text="借用" Value="3" />
                                                                </ext:DropDownList>
                                                            </td>
                                                            <td align="left" class="org f2 listline">&nbsp;&nbsp;<span style="color:red;font-weight:bold;">*</span>合同开始日期:
                                                            </td>
                                                            <td class="listline" style="padding-left: 5px;">
                                                                <ext:DatePicker runat="server" ID="txt_JOIDAT" Width="136px"></ext:DatePicker>
                                                            </td>
                                                            <td align="left" class="org f2 listline" width="115px">&nbsp;&nbsp;<span style="color:red;font-weight:bold;">*</span>合同结束日期:
                                                            </td>
                                                            <td class="listline" width="170px" style="padding-left: 5px;">
                                                                <ext:DatePicker runat="server" ID="txt_ENDDAT" Width="160px"></ext:DatePicker>
                                                            </td>


                                                        </tr>
                                                        <tr>

                                                            <td align="left" class="org f2 listline" width="115px" style="height: 32px;">&nbsp;&nbsp;转正日期:
                                                            </td>
                                                            <td class="listline" style="padding-left: 5px;">
                                                                <ext:DatePicker runat="server" ID="txt_PositiveTime" Width="100px"></ext:DatePicker>
                                                            </td>
                                                            <td align="left" class="org f2 listline" width="115px">&nbsp;&nbsp;<span style="color:red;font-weight:bold;">*</span>员工状态:
                                                            </td>
                                                            <td class="listline" style="padding-left: 5px;">
                                                                <ext:DropDownList runat="server" ID="Drp_StaffStatus" Width="100px">
                                                                    <ext:ListItem Text="试用期" Value="2" />
                                                                    <ext:ListItem Text="已转正" Value="1" />
                                                                    <ext:ListItem Text="已离职" Value="3" />
                                                                    <ext:ListItem Text="已退休" Value="4" />
                                                                    <ext:ListItem Text="临时" Value="5" />
                                                                </ext:DropDownList>
                                                            </td>
                                                            <td align="left" class="org f2 listline" width="115px">&nbsp;&nbsp;<span style="color:red;font-weight:bold;">*</span>岗位:
                                                            </td>
                                                            <td class="listline" style="padding-left: 5px;">
                                                                <ext:TextBox runat="server" ID="txt_POST" Width="160px"></ext:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>

                                                            <td align="left" class="org f2 listline" width="115px" style="height: 32px;">&nbsp;&nbsp;备注:
                                                            </td>
                                                            <td class="listline" style="padding-left: 5px; padding-top: 5px;" colspan="5">
                                                                <ext:TextArea runat="server" ID="txt_REMARK" Width="650px"></ext:TextArea>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </div>

                                            <%--<div class="title-bg">
                                        <span class="title-font main-btn1">员工档案</span>
                                    </div>
                                    <div>
                                        
                                    </div>--%>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </ext:ContentPanel>
                        <ext:Grid runat="server" ID="Grid1" Height="135px" OnRowDataBound="Grid1_RowDataBound" Title="个人档案" OnRowCommand="Grid1_RowCommand" AutoScroll="true" ShowHeader="true" EnableRowNumber="true" ShowBorder="false">
                            <Toolbars>
                                <ext:Toolbar ID="Toolbar1" CssClass="mytoolbar" runat="server">
                                    <Items>
                                        <ext:FileUpload runat="server" ID="filePhoto" ButtonText="上传档案" ButtonOnly="true"
                                            AutoPostBack="true" ButtonIcon="DiskUpload" OnFileSelected="filePhoto_FileSelected" Width="77px" Height="20px">
                                        </ext:FileUpload>
                                    </Items>
                                </ext:Toolbar>
                            </Toolbars>
                            <Columns>
                                <ext:BoundField DataField="FileName" Width="450px" HeaderText="文件名" />
                                <ext:BoundField DataField="FileName" Width="450px" HeaderText="文件名" Hidden="true" />
                                <ext:LinkButtonField ConfirmText="你确定要这么做么？" ConfirmTarget="Top" Icon="Decline" ColumnID="ID"
                                    Width="50px" CommandName="Del" TextAlign="Center" HeaderText="删除" />
                            </Columns>
                        </ext:Grid>
                    </Items>
                </ext:SimpleForm>



            </Items>
        </ext:Panel>
        <ext:HiddenField runat="server" ID="hf"></ext:HiddenField>
    </form>
    <script src="../jqueryui/js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../jqueryui/js/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">

        function onReady() {
            var EMPLID = '<%=txt_EMPLID.ClientID %>';
            var DIRMGR = '<%= txt_DIRMGR.ClientID %>';
            var HRMMGR = '<%=txt_HRMMGR.ClientID%>';
            //// 将字符串 val 以逗号空格作为分隔符，分隔成数组
            //function split(val) {
            //    return val.split(/,\s*/);
            //}

            //// 取得以逗号空格为分隔符的最后一个单词
            //// 比如，输入为 "C++, C#, JavaScript" 则输入出 "JavaScript"
            //function extractLast(term) {
            //    return split(term).pop();
            //}
            autoComp(EMPLID);
            autoComp(DIRMGR);
            autoComp(HRMMGR)

        }

    </script>
    <script src="../js/WebCommon.js"></script>
</body>
</html>
